/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package analisadorlexico;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * 
 * @author ufabc
 */
public class Main {

	/**
	 * @param args
	 *            the command line arguments
	 */
	public static void main(String[] args) throws IOException {
		try {
			Scanner scanner = new Scanner();

			Token tk = scanner.nextToken();
			//System.out.printf("Token reconhecido id: %d Symbol: %s\n", tk.tokenId,tk.tokenSymbol);
			while (tk != null) {
				System.out.printf("Token reconhecido id: %d Symbol: %s\n", tk.tokenId,tk.tokenSymbol);
				tk = scanner.nextToken();
			}
		} catch (FileNotFoundException ex) {
			Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
		}
	}

}
